import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-11-03
 * Time: 9:03
 */
public class Student implements Human{

    public  Student() {

    }

    public Student(Integer number,String name,List<String> hobbies) {
        this.number = number;
        this.name = name;
        this.hobbies = hobbies;
    }

    @Override
    public void study() {
        System.out.println(this.name + "正在学习");
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHobbies(List<String> hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public String toString() {
        return "Student{" +
                "number=" + number +
                ", name='" + name + '\'' +
                ", hobbies=" + hobbies +
                '}';
    }

    public Integer number;
    public String name;
    public List<String> hobbies;
}
